﻿// Dib.h: interface for the CDib class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIB_H__78F7CAC8_914C_40B6_AC36_F68FC22EDD8D__INCLUDED_)
#define AFX_DIB_H__78F7CAC8_914C_40B6_AC36_F68FC22EDD8D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DibBase.h"

class CDib : public CDibBase
{
public:
	CDib();
	virtual ~CDib();

private:
	CDC*		m_pMemDC;
	CBitmap*	m_pBitmap;
	CBitmap*	m_pBitmapTmp;
	HANDLE		m_hFileMapping;
	HDC			m_hDC;

	BOOL		m_bBeginPaint;

public:
	virtual void Destroy();

	virtual CDC* BeginPaint(int iValue, BOOL bFillInit);
	virtual void EndPaint();
	virtual void BitBlt( CDC* pDC, LPRECT lpRcDest, int xSrc = 0, int ySrc = 0, DWORD dwRop = SRCCOPY );
	virtual void StretchBlt( CDC* pDC, LPRECT lpRcDest, LPRECT lpRcSrc, DWORD dwRop = SRCCOPY );
	virtual void TransparentBlt( CDC* pDC, LPRECT lpRcDest, int xSrc = 0, int ySrc = 0);

protected:
	virtual BOOL DoCreate();
};

#endif // !defined(AFX_DIB_H__78F7CAC8_914C_40B6_AC36_F68FC22EDD8D__INCLUDED_)
